#include "stdafx.h"
#include "TransitionStateUserInterface.h"
#include "Time\TimeManager.h"
#include "States\GameStateObject.h"
#include "Menus\Label.h"

using namespace std;

TransitionStateUserInterface::TransitionStateUserInterface(GUISystem& guiSystem, shared_ptr<GameStateObject> pGameStateObject) : UserInterface(guiSystem), m_pGameStateObject(pGameStateObject)
{
}

TransitionStateUserInterface::~TransitionStateUserInterface()
{
}

void TransitionStateUserInterface::Init()
{
    stringstream ss;
    ss << "Day " << m_pGameStateObject->GetTimeManager().GetElapsedDays();
    SDL_Color color = { 0, 0, 255, 255 }; 
    m_day = make_shared<Label>("temp_font", ss.str(), Vector2D<s32>(), 64, color);
    AddControl(m_day);
}